remote-origin-url

Get the git remote origin URL from your local git repository. Remember! A remote origin must exist first!
Install with npm
npm i remote-origin-url --save
Install with bower
bower install remote-origin-url --save
Usage
Using the defaults:
var url = require('remote-origin-url');
url(function (err, res) {
})
Specify the cwd
to use:
url(__dirname, function (err, res) {
})
sync
url.sync();
Specify the cwd
to use:
url.sync(__dirname);
Run tests
Install dev dependencies:
npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb-cli on February 27, 2015.